package comparators;

import java.util.Comparator;

public class DoubleComparator implements Comparator<Object>{
	@Override
	public int compare(Object arg0, Object arg1) {
		String d1 = (String)arg0;
		String d2 = (String)arg1;
		Double double1 = Double.parseDouble(d1);
		Double double2 = Double.parseDouble(d2);
		return double1.compareTo(double2);
	}

	public boolean equals(Object o2){
		return this.equals(o2);
	}
}